package com.liveneo.adapter.mobile.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmCaseInfoLossItemCyp;
import com.liveneo.adapter.base.entity.PrpmLossItemCyp;
import com.liveneo.adapter.base.mapper.PrpmLossItemCypMapper;
import com.liveneo.adapter.mobile.model.dto.CaseInfoCDto;
import com.liveneo.adapter.mobile.model.request.GetPolicyItem31Request;
import com.liveneo.adapter.mobile.service.PrpmLossItemCypService;

/**
 * @Desc：
 * @Title：PrpmLossItemCypServiceImpl
 * @address: http://www.liveneo.com.cn/
 * @author: Liuzhipeng
 * @version: 1.0 
 * @date: 2016年11月10日 下午2:25:01
 */
@Service
public class PrpmLossItemCypServiceImpl implements PrpmLossItemCypService {
    
    @Autowired
    private PrpmLossItemCypMapper prpmLossItemCypMapper;
    
    @Override
    public List<CaseInfoCDto> selectByPhoneNo(String phoneNo) {
        
        return prpmLossItemCypMapper.selectByCPhoneNo(phoneNo);
    }

    @Override
    public PrpmLossItemCyp selectByPrimaryKey(String lossItemCypId) {
        
        return prpmLossItemCypMapper.selectByPrimaryKey(lossItemCypId);
    }

    @Override
    public int updateStatusByUuid(Map<String,Object> param) {
        
        return prpmLossItemCypMapper.updateStatusByUuid(param);
        
    }

    @Override
    public PrpmCaseInfoLossItemCyp getAuditionResultByUuid(String lossItemUuid) {
        
        return prpmLossItemCypMapper.getAuditionResultByUuid(lossItemUuid);
    }

	@Override
	public List<PrpmLossItemCyp> selectLossByCaseNo(String caseNo) {
		return prpmLossItemCypMapper.selectLossByCaseNo(caseNo);
	}

	@Override
	public int updateByPrimaryKeySelective(PrpmLossItemCyp record) {
		return prpmLossItemCypMapper.updateByPrimaryKeySelective(record);
	}
	
    @Override
    public List<PrpmLossItemCyp> selectLossByUserCodeAndCaseNo(Map<String, Object> map) {
        
        return prpmLossItemCypMapper.selectLossByUserCodeAndCaseNo(map);
    }

    @Override
    public int updateToSurPeoByCaseNo(PrpmLossItemCyp lossItemCyp) {
        
        return prpmLossItemCypMapper.updateByPrimaryKeySelective(lossItemCyp);
    }

    @Override
    public List<PrpmCaseInfoLossItemCyp> getCaseLossDtoByPhoneNo(String phoneNo) {
        
        return null;
//        prpmLossItemCypMapper;
    }

    @Override
    public PrpmLossItemCyp selectByRequest(GetPolicyItem31Request request) {
        
        return prpmLossItemCypMapper.selectByRequest(request);
    }

	/**
	  * @Title: save
	  * @Description: 新增
	  * @param @param record
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public int save(PrpmLossItemCyp record) {
		return prpmLossItemCypMapper.insert(record);
	}

	/**
	  * @Title: selectByLossItemCyp
	  * @Description: 
	  * @param @param record
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public PrpmLossItemCyp selectByLossItemCyp(PrpmLossItemCyp record) {
		return prpmLossItemCypMapper.selectByLossItemCyp(record);
	}

	/**
	  * @Title: selectByLossItemCypList
	  * @Description: 
	  * @param @param record
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public List<PrpmLossItemCyp> selectByLossItemCypList(PrpmLossItemCyp record) {
		return prpmLossItemCypMapper.selectByLossItemCypList(record);
	}
}
